﻿if (typeof(Admin) == 'undefined')
    Admin = {};
if (typeof (Admin.News) == 'undefined')
    Admin.News = {};

Admin.News.Edit = {
    UpdatePhotosLink: function () {
        var link1 = $("#upload1").attr("filename");
        $("input[id$='photos1']").val(link1);
    },
    LoadPhoto: function () {
        $("#upload1").attr("filename") = $("input[id$='photos1']").val();
    },
    InitUploader: function () {
        var setting = { action: 'Service/UploadImageNews.ashx' };
        Admin.Core.Uploader('upload1', setting);
    },
    Init: function () {
        this.InitUploader();
    }
}
$(function () {
    Admin.News.Edit.Init();
});